import axiosConfig from "./axiosConfig2";

export default {
  // 1.登录页面获取短信验证码
  reqVerifyCode(params) {
    return axiosConfig.masterGet("/HncWeb/SMS/send.action", params);
  },
  // 2.登录页面通过手机号和验证码登录
  reqLogin(params) {
    return axiosConfig.masterGet("/HncWeb/SMS/verify.action", params);
  },

  // 登录页面获取短信验证码
  // reqVerifyCode(params) {
  //   return axiosConfig.infraredPost('/api/infrared/sendSms', params);
  // },
  //
  // // 登录页面通过手机号和验证码登录
  // reqLogin(params) {
  //   return axiosConfig.infraredPost('/api/infrared/login', params);
  // },
  // https://mastertest.hzncc.cn/HncWeb/SMS/send.action?phoneNum=13297061783;
  // https://mastertest.hzncc.cn/HncWeb/SMS/verify.action?phoneNum=13297061783&code=2574;

  // 3.获取服务单详情;
  getClientDetail(params) {
    return axiosConfig.get("/selByRepairOrderNumber.action", params);
  },
  // 4.根据用户名获取角色id;
  getRoleId(params) {
    return axiosConfig.hncWebGet("/SelectUPermission.action", params);
  },
  // 5.管理员获取指派列表;
  getDispatchList(params) {
    return axiosConfig.hncWebGet(
      "/getDistrictManagerAndService.action",
      params
    );
  },
  // 6.管理员获取片区主管列表;
  getDistrictList(params) {
    return axiosConfig.hncWebGet("/getDistrictManager.action", params);
  },
  // 7.修改片区主管;
  updateDistrictList(params) {
    return axiosConfig.hncWebPost("/updateDistrictManager.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 8.添加片区主管;
  addDistrictList(params) {
    return axiosConfig.hncWebPost("/addDistrictManager.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 9.删除片区主管;
  deleteDistrictList(params) {
    return axiosConfig.axiosDelete("/deleteDistrictManager.action", params);
  },
  // 10.管理员根据片区主管获取客服人员列表;
  reqMasterServiceList(params) {
    return axiosConfig.hncWebGet("/getDistrictService.action", params);
  },
  // 11.客服主管添加修改客服人员;
  reqMasterAddAndUpdateService(params) {
    return axiosConfig.hncWebPost(
      params,
      "/addAndUpdateDistrictService.action"
    );
  },
  // 12.客服主管删除客服人员;
  reqMasterDeleteService(params) {
    return axiosConfig.axiosDelete("/deleteDistrictService.action", params);
  },
  // 13.用户获取审核列表;
  reqGetVerifyList(params) {
    return axiosConfig.hncWebGet("/getApprovalCases.action", params);
  },
  // 14.案例库删除一组解决方案;
  reqDeleteCaseGroup(params) {
    return axiosConfig.axiosDelete("/deleteMultiPictures.action", params);
  },
  // 15.案例库删除上传的单张图片;
  reqDeleteSingleImg(params) {
    return axiosConfig.axiosDelete("/deleteSinglePicture.action", params);
  },
  // 16.案例库案例录入;
  reqCaseImport(params) {
    return axiosConfig.hncWebPost("/commitCases.action", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 17.片区主管获取客服列表;
  getMasterList(params) {
    return axiosConfig.hncWebGet("/getDistrictService.action", params);
  },
  // 18.片区主管添加客服人员;
  addService(params) {
    return axiosConfig.hncWebPost("/addDistrictService.action", params, {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 19.片区主管修改客服人员;
  updateService(params) {
    return axiosConfig.hncPost("/updateDistrictService.action", params, {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 20.片区主管删除客服人员;
  deleteService(params) {
    return axiosConfig.axiosDelete("/deleteDistrictService.action", params);
  },
  // 21.故障统计中，获取设备类型;
  reqDeviceType(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 22.故障统计中，获取保修状态;
  reqGuaranteeState(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 23.故障统计中，获取订单状态;
  reqBillState(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 24.故障统计中，获取任务类型;
  reqTaskType(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 25.故障统计中，获取服务满意度;
  reqServiceAttitude(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 26.故障统计中，获取片区统计;
  reqDistrictStatics(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 27.故障报修, 获取报修机床厂;
  reqGetRepairCompany(params) {
    return axiosConfig.hncWebGet("/selRepairComp.action", params);
  },
  // 28.故障报修;
  reqHandleRepair(params) {
    return axiosConfig.cloudManagerPost(
      params,
      "/insertFaultRepairAndBindPicture.action",
      {
        headers: {
          "Content-Type": "multipart/form-data"
        }
      }
    );
  },
  // 29.我的维修单, 高级搜索;
  reqAfterSaleByParam(params) {
    return axiosConfig.get("/getAfterSaleByParam.action", params);
  },

  // 31.订单评价;
  reqHandleEvaluate(params) {
    return axiosConfig.cloudManagerPost(params, "/addEvaluation.action", {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 32.订单内部关闭;
  reqInnerClose(params) {
    return axiosConfig.post("/updateAfterSaleServiceState.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 33.订单指派;
  reqHandleDispatch(params) {
    return axiosConfig.post("/appointToPerson.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 34.获取转单列表;
  reqTransferList(params) {
    return axiosConfig.get("/getServiceFromWebApi.action", params);
  },
  // 35.订单转单;
  reqTransferBill(params) {
    return axiosConfig.post("/changeOrder.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 36.删除工单;
  reqDeleteBill(params) {
    return axiosConfig.cloudManagerDelete("/deleteFaultRepair.action", params);
  },
  // 37.订单维修完成;
  reqMendFinish(params) {
    return axiosConfig.post("/updateAfterSaleServiceState.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 38.订单指派给报修人发短信;
  reqSendDispatchMsg(params) {
    return axiosConfig.masterGet("/incCloudCms/SMS/send.action", params);
  },
  // 39.订单指派给维修人发短信;
  reqSendMendMsg(params) {
    return axiosConfig.masterGet("/incCloudCms/SMS/sendRepair.action", params);
  },
  // 40.获取案例详情;
  reqGetCaseDetail(params) {
    return axiosConfig.hncWebGet("/getCaseById.action", params);
  },
  // 41.修改案例详情;
  reqUpdateCase(params) {
    return axiosConfig.hncWebPost("/commitCases.action", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 42.服务单详情;
  reqClientDetail(params) {
    return axiosConfig.get("/selByRepairOrderNumber.action", params);
  },
  // 43.服务单流水;
  reqClientProcess(params) {
    return axiosConfig.get("/getProcessByOrderNumber.action", params);
  },
  // 44.修改服务单;
  reqUpdateClientBill(params) {
    return axiosConfig.cloudManagerPost(
      params,
      "/updateFaultRepairAndBindPicture.action",
      {
        headers: {
          "Content-Type": "multipart/form-data"
        }
      }
    );
  },
  // 45.售后单详情;
  reqSaleDetail(params) {
    return axiosConfig.get("/getAfterSaleServiceByNumber.action", params);
  },
  // 46.修改售后单;
  reqUpdateSaleBill(params) {
    return axiosConfig.cloudManagerPost(
      params,
      "/updateAfterSaleService.action",
      {
        headers: {
          "Content-Type": "multipart/form-data"
        }
      }
    );
  },
  // 47.售后单流水;
  reqSaleProcess(params) {
    return axiosConfig.get("/getAfterSaleProcessByNumber.action", params);
  },
  // 48.评价详情;
  reqEvaluateContent(params) {
    return axiosConfig.get("/getByRepairOrderNumber.action", params);
  },
  // 49.工单暂停;
  reqBillPause(params) {
    return axiosConfig.post("/updateAfterSaleServiceState.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 50.添加维修信息;
  reqHandleMendInformation(params) {
    return axiosConfig.cloudManagerPost(params, "/addResolveRecord.action", {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 51.获取维修信息;
  reqGetMendList(params) {
    return axiosConfig.get("/getResolveRecord.action", params);
  },
  // 52.新建工单;
  reqAddSaleBill(params) {
    return axiosConfig.cloudManagerPost(params, "/addAfterSaleService.action", {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 53.获取案例列表;
  reqGetCaseList(params) {
    return axiosConfig.hncWebGet("/searchByKeywords.action", params);
  },
  // 54.订单转单给被转的人发短信;
  reqSendTransferMsg(params) {
    return axiosConfig.masterGet("/incCloudCms/SMS/sendRepair.action", params);
  },
  // 55.案例审核不通过;
  reqAmendmentPass(params) {
    return axiosConfig.hncPost("/approvalCases.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 56.新增片区配置列表;
  getDeployList(params) {
    return axiosConfig.get("/getDistrictByCompId.action", params);
  },
  // 57.新增片区配置列表的修改;
  reqUpdateDeployList(params) {
    return axiosConfig.post("/updateDistrictAndProvince.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 58.新增片区配置列表的删除;
  deleteDeployDistrict(params) {
    return axiosConfig.cloudManagerDelete("/deleteDistrict.action", params);
  },
  // 59.新增片区配置列表的增加;
  reqAddDeployList(params) {
    return axiosConfig.post("/addDistrictAndProvince.action", params, {
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    });
  },
  // 60.获取地图坐标位置;
  getMarkerLists(params) {
    return axiosConfig.get("/getWebCheckOutRecordByParam.action", params);
  },
  // 61.管理员查询本月和本日的打卡次数;
  getCheckTimeCounts(params) {
    return axiosConfig.get("/getTodayAndMonthCheckOutTime.action", params);
  },
  // 62.服务饼状图接口;
  statisticsPieChart(params) {
    return axiosConfig.get("/statisticsPieChart.action", params);
  },
  // 63.服务折线图接口;
  statisticsLineChart(params) {
    return axiosConfig.get("/statisticsLineChart.action", params);
  },
  // 64.故障饼状图接口;
  failureStatisticsPieChart(params) {
    return axiosConfig.get("/servicePieChart.action", params);
  },
  // 65.重大问题和服务单接口;
  orderLineChart(params) {
    return axiosConfig.get("/orderLineChart.action", params);
  },
  // 65.前十重大问题单;
  viIssueOrderInfo(params) {
    return axiosConfig.get("/getViIssueOrderInfo.action", params);
  },
  // 66.统计研究院中各个部门的售后单数量和占比;
  getPieOfAfterSaleByDepartment(params) {
    return axiosConfig.get("/getPieOfAfterSaleByDepartment.action", params);
  },
  // 67.统计研究院中未完成和完成单，按操作者分类;
  getLineOfAfterSaleByState(params) {
    return axiosConfig.get("/getLineOfAfterSaleByState.action", params);
  },
  // 68.统计研究院各月中完成和未完成的订单数
  getHistogramOfAfterSaleByMonth(params) {
    return axiosConfig.get("/getHistogramOfAfterSaleByMonth.action", params);
  },
  // 70.查询二级部门
  findSecondDepartment(params) {
    return axiosConfig.hncWebGet("/findSecondDepartment", params);
  },
  // 71.查询历史工单(已完成的工单)
  getCompletedRepairOrderByPage(params) {
    return axiosConfig.get("/getCompletedRepairOrderByPage.action", params);
  },
  // 30.我的维修单, 我的;
  getRepairOrderByDistrictAndPage(params) {
    return axiosConfig.get("/getRepairOrderByDistrictAndPage.action", params);
  },
  // 72.全部工单;
  getRepairOrderByStateAndPage(params) {
    return axiosConfig.get("/getRepairOrderByStateAndPage.action", params);
  },
  // 73.研究院工单;
  getAfterSaleOfInstitute(params) {
    return axiosConfig.get("/getAfterSaleOfInstitute.action", params);
  },
  // 74.获取返修产品返修单列表;
  getAllRepair(params) {
    return axiosConfig.hncWebGet("/getAllRepair", params);
  },
  // 75.获取返修产品类型和返修产品型号数据;
  getProductModel(params) {
    return axiosConfig.hncWebGet("/getProductModel", params);
  },
  // 76.返修上传图片;
  uploadRepairPicture(params) {
    return axiosConfig.hncWebPost("/uploadRepairPicture", params, {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 77.获取返修产品返修单详情;
  getRepair(params) {
    return axiosConfig.hncWebGet("/getRepair", params);
  },
  // 78.获取返修单进度;
  getProcess(params) {
    return axiosConfig.hncWebGet("/getProcess", params);
  },
  // 79.获取返修指派人员列表;
  getAssignList(params) {
    return axiosConfig.hncWebGet("/getAssignList", params);
  },
  // 80.新建返修单
  repairAddRepair(params) {
    return axiosConfig.hncWebPost("/addRepair", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 81.返修确认收货
  repairReceive(params) {
    return axiosConfig.hncWebPost("/receive", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 82.返修确认指派
  repairAssign(params) {
    return axiosConfig.hncWebPost("/assign", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 83.返修开始维修
  repairBeginMaintain(params) {
    return axiosConfig.hncWebPost("/beginMaintain", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 84.返修维修完成
  repairMaintainFinish(params) {
    return axiosConfig.hncWebPost("/maintainFinish", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 85.返修完成
  repairFinish(params) {
    return axiosConfig.hncWebPost("/repairFinish", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 86.获取故障原因和故障细分数据
  getFaultSubdivision(params) {
    return axiosConfig.hncWebGet("/getFaultSubdivision", params);
  },
  // 87.编辑返修单
  repairUpdateRepair(params) {
    return axiosConfig.hncWebPost("/updateRepair", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 88.上传维修信息内容图片
  uploadRepairContentPicture(params) {
    return axiosConfig.hncWebPost("/uploadRepairContentPicture", params, {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  // 89.添加维修信息
  addRepairContent(params) {
    return axiosConfig.hncWebPost("/addRepairContent", params, {
      headers: {
        "Content-Type": "application/json"
      }
    });
  },
  // 90.返修订单状态统计;
  getStatusData(params) {
    return axiosConfig.hncWebGet("/getStatusData", params);
  },
  // 91.返修故障原因统计;
  getFaultData(params) {
    return axiosConfig.hncWebGet("/getFaultData", params);
  },
  // 92.返修产品类型统计;
  getProductTypeData(params) {
    return axiosConfig.hncWebGet("/getProductTypeData", params);
  },
  // 93.返修结果统计;
  getResultData(params) {
    return axiosConfig.hncWebGet("/getResultData", params);
  }
};
